<template>
  <div class="home-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="decoration-blob blob-1"></div>
      <div class="decoration-blob blob-2"></div>
      <div class="decoration-grid"></div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
      <!-- 欢迎区域 -->
      <div class="welcome-section">
        <div class="welcome-card">
          <div class="card-glow"></div>
          <div class="system-logo">
            <div class="logo-wrapper">
              <el-image :src="logo" style="width: 100px;"></el-image>
            </div>
          </div>
          <h1 class="system-title">菠萝出行领养人查询系统</h1>
          <p class="system-subtitle">专业的领养人信息管理与查询平台</p>
          <div class="system-description">
            <div class="description-content">
              <p>欢迎使用菠萝出行领养人查询系统</p>
              <p>请通过左侧导航菜单访问相关功能模块</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import {
  User,
  Van,
  Tools,
  InfoFilled
} from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import logo from '@/assets/logo/blcx.png'

// 导航处理函数
const handleNavigation = (route) => {
  ElMessage.success(`跳转到${route}页面`)
  // 这里可以添加实际的路由跳转逻辑
  // router.push(`/${route}`)
}
</script>

<style scoped>
.home-container {
  padding: 0;
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 50%, #e0e7ff 100%);
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.decoration-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  bottom: -150px;
  left: -150px;
  animation-delay: 4s;
}

.decoration-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
      radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
      radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.main-content {
  max-width: 700px;
  width: 100%;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* 欢迎区域样式 */
.welcome-section {
  display: flex;
  justify-content: center;
}

.welcome-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 60px 50px;
  text-align: center;
  box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
  transparent,
  rgba(99, 102, 241, 0.8) 20%,
  rgba(139, 92, 246, 0.8) 50%,
  rgba(6, 182, 212, 0.8) 80%,
  transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.system-logo {
  margin-bottom: 40px;
}

.logo-wrapper {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border-radius: 24px;
  padding: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow:
      0 8px 32px rgba(99, 102, 241, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
  transparent,
  rgba(255, 255, 255, 0.4),
  transparent
  );
  transition: left 0.6s ease;
}

.logo-wrapper:hover::before {
  left: 100%;
}

.logo-wrapper:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
      0 12px 40px rgba(99, 102, 241, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.system-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.system-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0 0 50px 0;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.9;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.system-description {
  background: linear-gradient(135deg, #f8faff, #f1f5f9);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.system-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  border-radius: 20px 20px 0 0;
}

.description-content {
  padding: 36px 32px;
  position: relative;
}

.system-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  font-weight: 400;
}

.system-description p:first-child {
  margin-bottom: 12px;
  font-weight: 600;
  color: #334155;
  font-size: 17px;
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-container {
    padding: 20px;
    align-items: flex-start;
    padding-top: 80px;
  }

  .main-content {
    padding: 20px 16px;
  }

  .welcome-card {
    padding: 48px 32px;
    border-radius: 28px;
  }

  .system-title {
    font-size: 28px;
  }

  .system-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .description-content {
    padding: 28px 24px;
  }

  .logo-wrapper {
    padding: 20px;
    border-radius: 20px;
  }

  .blob-1, .blob-2 {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding: 16px;
    padding-top: 60px;
  }

  .main-content {
    padding: 16px 12px;
  }

  .welcome-card {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .system-title {
    font-size: 24px;
  }

  .system-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .description-content {
    padding: 24px 20px;
  }

  .system-description p {
    font-size: 15px;
  }

  .logo-wrapper {
    padding: 16px;
  }

  .decoration-grid {
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
  }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
  .welcome-card {
    padding: 80px 60px;
  }

  .system-title {
    font-size: 42px;
  }

  .system-subtitle {
    font-size: 20px;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .home-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  }

  .welcome-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.3);
  }

  .system-title {
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .system-subtitle {
    color: #94a3b8;
  }

  .system-description {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid rgba(71, 85, 105, 0.4);
  }

  .system-description p {
    color: #cbd5e1;
  }

  .system-description p:first-child {
    color: #f1f5f9;
  }

  .logo-wrapper {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid rgba(99, 102, 241, 0.2);
  }
}
</style>